<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="com.control.ScoreControl"%>
<%@ page import="com.model.Score"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>处理</title>
	</head>
	<body>
<%
	request.setCharacterEncoding("utf-8");
	float point=Float.parseFloat(request.getParameter("point"));
	int score_id = Integer.parseInt(request.getParameter("score_id"));
	Score score = new Score();
	score.setPoint(point);
	score.setId(score_id);
	ScoreControl sc = new ScoreControl();
	if(sc.updateScore(score))
	{
		%>
		<script>
		alert("修改成功！");
		window.location.href="Score_Info_show.jsp";
		</script>
	<%}else{%>
		<script>
		alert("修改失败！");
		window.location.href="Score_Info_show.jsp";
		</script>	
	<%}
%>

</body>
</html>